package dao;

import model.Goods;

import java.util.List;

public interface GoodsDao {
    public boolean InsertGoods(Goods goods);

    public boolean DeleteGoods(String goodsid);

    public boolean UpdateGoods(Goods goods);

    public boolean UpdateTradingFinishGoods(String  goodsid);

    public List<Goods> ShowGoods();

    public Goods ShowGoodsInfo(String goods_id);

    public Goods GetSmallGoodsInfo(String goods_id);
    public String  GetGoodsUserId(String goods_id);
    public List<Goods> ShowGoods(String goods_id);

    public List<Goods> ShowSerachGoods(String serach);

    public List<Goods> ShowUserGoods(String user_id);

    public List<Goods> findByPageGoods(int page);
    public int goodsCount();
}
